#include <sstream>

template<typename T> T MyString::toNumber(const std::string& str)
    {
    std::istringstream iss(str, std::istringstream::in);
    T numeric;
    iss >> numeric;
    return numeric;
    }
